package org.nerve.kotlin.boot.service

import org.springframework.stereotype.Service
import java.util.*

/**
 * Created by zengxm on 2017/7/25.
 */
@Service
class IndexService {
    /**
     * 显示时间提示
     */
    fun index() = "Hello , new is ${Date()}"

    /**
     * 用户列表
     */
    fun userList() = listOf("马云","马化腾","李宏毅")

    /**
     * 获取配置列表
     */
    fun settings() = mapOf(
            "name" to "Spring with kotlin",
            "version" to "1.0.0",
            "author" to "集成显卡"
    )
}